package com.fly.uaa.model;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 * @description 用户信息
 * @author: fly
 * @date: 2018/11/26 14:30
 */
@Data
public class CustomerUserDetail extends User {

    /**
     * 用主键
     */
    private Long userId;

    public CustomerUserDetail(Long userId, String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
        this.userId = userId;
    }
}
